<script type="text/javascript">
var sharebutton = [];
{loop $sharebuttons $key $sharebutton}
{if $sharebutton['open']}
sharebutton['{$key}'] = {'link':'{$sharebutton['link']}','width':'{$sharebutton['width']}','height':'{$sharebutton['height']}'};
{/if}
{/loop}
</script>
